import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class ArticleColumnInclusionDto {
  @IsNotEmpty({ message: '专栏ID不能为空' })
  @ApiProperty({
    description: '专栏ID',
    example: 1,
  })
  columnId: number;

  @IsNotEmpty({ message: '文章ids不能为空' })
  @ApiProperty({
    description: '文章ids',
    example: [1, 2],
  })
  articleIds: number[];
}
